<template>
	<el-container style="height:970px">
	  <el-aside width="200px"  class="aside">
		  <h1 style="width: 100%;
    height: 50px;
    border-bottom: 1px solid #dcdfe6;
    color: #fff;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-align: center;
    line-height: 50px;
    font-size: 16px;">考试作业管理系统</h1>
	
	<el-menu
	      default-active="2"
	      class="el-menu-vertical-demo"
	      background-color="#545c64"
	      text-color="#fff"
	      active-text-color="#ffd04b">
	      <el-menu-item index="1" @click="routerPush('/stuManage')">
	        <i class="el-icon-menu"></i>
	        <span slot="title" >学生管理</span>
	      </el-menu-item>
	      <el-menu-item index="2" @click="routerPush('/paperManage')">
	        <i class="el-icon-setting"></i>
	        <span slot="title" >试卷管理</span>
	      </el-menu-item>
		  <el-menu-item index="3"  @click="routerPush('/testManage')">
		    <i class="el-icon-setting"></i>
		    <span slot="title"  >试题管理</span>
		  </el-menu-item>
		  <el-menu-item index="4" @click="routerPush('/work')">
		    <i class="el-icon-setting"></i>
		    <span slot="title"  >作业管理</span>
		  </el-menu-item>
		  <el-menu-item index="5" @click="routerPush('/scoreManage')">
		    <i class="el-icon-setting"></i>
		    <span slot="title"  >分数查询</span>
		  </el-menu-item>
		  <el-menu-item index="5" @click="routerPush('/selectClass')">
		    <i class="el-icon-setting"></i>
		    <span slot="title"  >课件管理</span>
		  </el-menu-item>
	    </el-menu>
	  </el-aside>
	  <el-container>
	    <el-header>Header</el-header>
	    <el-main style="padding: 0;">
			<router-view/>
			</el-main>
	  </el-container>
	</el-container>
</template>

<script>
	export default {
		data(){
			return{
				
			}
		},
		methods:{
			routerPush(url){
				this.$router.push(url)
			}
		}
	}
</script>

<style>
	html,body,*{
		margin: 0;
		padding: 0;
	}
	.aside{
		height: 100%;
		background-color:rgb(0, 21, 41);
	}
	
</style>